﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAO;
using DTO;

namespace BUS
{
    public class DanhMucChinhBUS
    {
        public static List<DanhMucChinhDTO> layDSTenDanhMucChinh()
        {
            return DanhMucChinhDAO.layDSTenDanhMucChinh();
        }

        public static List<DanhMucChinhDTO> getAll()
        {
            return DanhMucChinhDAO.getAll();
        }

        public static DanhMucChinhDTO getAlongCode(int maDanhMucChinh)
        {
            return DanhMucChinhDAO.getAlongCode(maDanhMucChinh);
        }

        public static void Insert(DanhMucChinhDTO _insert)
        {
            DanhMucChinhDAO.Insert(_insert);
        }

        public static void Delete(int maDanhMucChinh)
        {
            DanhMucChinhDAO.Delete(maDanhMucChinh);
        }

        public static void Update(DanhMucChinhDTO dto)
        {
            DanhMucChinhDAO.Update(dto);
        }

        public static int getMa(string tenDanhMuc)
        {
            return DanhMucChinhDAO.getMa(tenDanhMuc);
        }

        public static string getTen(int maDanhMuc)
        {
            return DanhMucChinhDAO.getTen(maDanhMuc);
        }
    }
}
